package org.demo.eventbus;

import lombok.extern.slf4j.Slf4j;
import org.demo.redis.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("event")
public class EventController {

    @RequestMapping("demo")
    public void doDemo(){
        User user = new User();
        user.setId(1l);
        EventBusDemo.eventDemo(user);
    }
}
